//===============================================================================
// Microsoft Architecture Strategy Team
// LitwareHR - SaaS Sample Application
//===============================================================================
// Copyright  Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================


using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace ConfigurationWizard.Configuration
{
    public class DependencyElement : ConfigurationElement
    {
        [ConfigurationProperty("dependencyType", IsRequired = true)]
        public string DependencyType
        {
            get { return (string)base["dependencyType"]; }
            set { base["dependencyType"] = value; }
        }


        [ConfigurationProperty("value", IsRequired = true)]
        public string Value
        {
            get { return (string)base["value"]; }
            set { base["value"] = value; }
        }

        [ConfigurationProperty("matchwholeword", IsRequired = false)]
        public bool MatchWholeWord
        {
            get { return Convert.ToBoolean(base["matchwholeword"]); }
            set { base["matchwholeword"] = value; }
        }



        [ConfigurationProperty("enabled", IsRequired = true)]
        public bool Enabled
        {
            get { return (bool)base["enabled"]; }
            set { base["enabled"] = value; }
        }

        [ConfigurationProperty("title", IsRequired = true)]
        public string Title
        {
            get { return (string)base["title"]; }
            set { base["title"] = value; }
        }

        [ConfigurationProperty("optional", IsRequired = true)]
        public bool Optional
        {
            get { return (bool)base["optional"]; }
            set { base["optional"] = value; }
        }

        [ConfigurationProperty("explanation", IsRequired = true)]
        public string Explanation
        {
            get { return (string)base["explanation"]; }
            set { base["explanation"] = value; }
        }

        [ConfigurationProperty("scriptName", IsRequired = false)]
        public string ScriptName
        {
            get { return (string)base["scriptName"]; }
            set { base["scriptName"] = value; }
        }

        [ConfigurationProperty("downloadUrl", IsRequired = false)]
        public string DownloadUrl
        {
            get { return (string)base["downloadUrl"]; }
            set { base["downloadUrl"] = value; }
        }
    }
}
